package yuejian_07.yuejian_07.service;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
import yuejian_07.yuejian_07.javabean.Train;
import yuejian_07.yuejian_07.javabean.TrainOrder;

/**
 * Created by dell on 2017/10/11.
 */

public interface TrainService {
    @GET("Train/getTrain")
    Call<List<Train>> getAllTrains();
    @GET("Train/getCaijiTrain")
    Call<List<Train>> getCaijiTrain();
    @GET("Train/getJinjieTrain")
    Call<List<Train>> getJinjieTrain();
    @GET("Train/getGaoshouTrain")
    Call<List<Train>> getGaoshouTrain();

    @GET("Train/getTrainInfo")

    Call<Train> getTrainById(
            @Query("train_id") int train_id);
<<<<<<< HEAD
    @GET("Train/searchTrain")
    Call<List<Train>> getTrainBySearch(
            @Query("search") String search
=======
    //购买课程
    @GET("Train/addtrainn")
    Call<TrainOrder> insertOrder(
            @Query("user_id") int user_id,
            @Query("train_id") int train_id
>>>>>>> 9cbb853725830abfea6e866ce1cbf3c925de3bcd
    );
}
